﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="div.aspx.cs" Inherits="WebSite.div" %>

var Obj='';
document.onmouseup=MUp_Jst;
document.onmousemove=MMove_Jst;
var closeB_Jst=false;
function MDown(Object1)
	 {
		zhi=false;
		Obj=Object1.id;
		document.getElementById(Obj).setCapture();
		pX=event.x-document.getElementById(Obj).style.pixelLeft;
		pY=event.y-document.getElementById(Obj).style.pixelTop;
	}
	function MMove_Jst()
	{
		if(Obj!=''){
			document.getElementById(Obj).style.left=event.x-pX;
			document.getElementById(Obj).style.top=event.y-pY;
			ssLeft=event.x-pX;
			
			
		  if (document.documentElement && document.documentElement.scrollTop)
		  sstop=event.y-pY-document.documentElement.scrollTop;
          else
		  sstop=event.y-pY-document.body.scrollTop;
		  
		}
	}

	function MUp_Jst()
	{
		zhi=true;
		if(Obj!=''){
			document.getElementById(Obj).releaseCapture();
			Obj='';
		}
	}

var ssLeft=screen.width-176;

var sstop=158;
var delta_Jst = 0.05;
var theFloaters_Jst		= new floaters_Jst();

var strHtml='<style type="text/css">'
		+ '<!--'
		+ '.divstaytop {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;SCROLLBAR-FACE-COLOR: #ffffff;SCROLLBAR-HIGHLIGHT-COLOR: #eeeeee;SCROLLBAR-SHADOW-COLOR: #ffffff;SCROLLBAR-3DLIGHT-COLOR: #ffffff;SCROLLBAR-ARROW-COLOR: #eeeeee;SCROLLBAR-TRACK-COLOR: #ffffff;SCROLLBAR-DARKSHADOW-COLOR: #666666;SCROLLBAR-BASE-COLOR: #ffffff}'
		+ '.staystyle3 {font-size: 12px;font-weight: bold;color: #3A78D6;}'
		+ '.style4 {font-size: 12px;color:#4075C6}'
		+ '.style5 {font-size: 12px;color:#666666}'
		+ 'a:link {text-decoration: none;}'
		+ 'a:visited {text-decoration: none;}'
		+ 'a:hover {text-decoration: none;}'
		+ 'a:active {text-decoration: none;}'
		+ '.yincang {width: 100px;}'
		+ '.yincang ul {margin: 0px;}'
		+ '.yincang li {clear: both;width: 100px;display: block;overflow: hidden;height: 22px;margin-top: 0px;margin-bottom: 0px;}'	
		+ '-->'
		+ '</style>'
		+ '<span id="divStayTopLeft1" style="position:absolute; Z-index:10; width:100px;" class="divstaytop" style="display:<%if (istrue!="1"){ %>none<%}%>">'
	  	+ '<table width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff" style="margin:0" class="divstaytop">'
		+ '<tr height="35" style="cursor: move"  onmousedown="MDown(divStayTopLeft1)">'
		+ '<td width="0.8%" align="left" valign="top" style="padding:0"><img src="/img/top2_01.gif" width="4" height="35"></td>'
		+ '<td width="100%" align="left" background="/img/top2_04.gif" style="background-repeat:repeat-x ; padding:0"><img src="/img/top2_02.gif" width="100" height="35"></td>'
		+ '<td width="1%" align="right" valign="top" style="padding:0"><img src="/img/top2_03.gif" width="4" height="35"></td>'
		+ '</tr>'
		+ '<tr height="150">'
		+ '<td background="/img/top2_09.gif" style="background-repeat:repeat-y ; padding:0"></td>'
		+ '<td align="center" valign="top" id="frameHeight" height="150" style="padding:0">'
		+ '<table border="0" cellpadding="0" cellspacing="0" width="120" style="margin:0"><tr><td><div id="54kefuqqdiv" style="overflow:auto;width:114px;height:auto; min-height:150px;">'
		
+ '<table id="showUinList" style="MARGIN: 0px" cellspacing="0" cellpadding="0" width="100%" align="left" border="0"><tbody>'
+ '<tr style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; CURSOR: hand; PADDING-TOP: 0px">'
+ '<td height="5">&nbsp;</td>'
+ '</tr>'


+ '<%=msg%>'

+ '</tbody></table>'
		
		+'</div></td></tr></table>'
		+ '</td>'
		+ '<td background="/img/top2_10.gif" style="background-repeat:repeat-y; background-position:right; padding:0"></td>'
		+ '</tr>'
		+ '<tr>'
		+ '<td style="padding:0"><img src="/img/top2_05.gif" width="4" height="39"></td>'
		+ '<td align="left" background="/img/top2_08.gif" style="background-repeat:repeat-x;background-position:bottom ;padding:0">'
		+ '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0">'
		+ '<tr>'
		+ '<td height="39" align="left" background="/img/top2_06.gif" style="background-repeat:no-repeat;font-size: 13px;font-weight: bold;color: #FF0000;float: left;text-align: center;width: 104px; padding:0">在线咨询</td></tr>'
		+ '</table>'
		+ '</td>'
		+ '<td align="right" style="padding:0"><img src="/img/top2_07.gif" width="4" height="39"></td>'
		+ '</tr>'
		+ '</table>'
		+'</span>';

theFloaters_Jst.addItem('followDiv2_Jst',ssLeft,sstop,strHtml);
theFloaters_Jst.play_Jst();
function floaters_Jst() 
	{
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
				  var xa=screen.width-x;
					//document.write('<DIV id='+id+' style="Z-INDEX:10; POSITION: absolute;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
					document.write('<DIV id='+id+' style="Z-INDEX:10; POSITION: absolute;right:'+xa+'px;top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
					var newItem_Jst				= {};
					newItem_Jst.object			= document.getElementById(id);
					newItem_Jst.x				= x;
					//alert(x);
					newItem_Jst.y				= y;

					this.items[this.items.length]= newItem_Jst;
				  }
		this.play_Jst	= function()
				  {
					collection_Jst				= this.items
					setInterval('play_Jst()',20); 
				  }
		}
function play_Jst()
{
if(screen.width<=700 || closeB_Jst)
{for(var i=0;i<collection_Jst.length;i++){
collection_Jst[i].object.style.display='none';}
return;}
for(var i=0;i<collection_Jst.length;i++)
{
var followObj= collection_Jst[i].object;
var followObj_x=(typeof(collection_Jst[i].x)=='string'?eval(collection_Jst[i].x):collection_Jst[i].x);
var followObj_y=(typeof(collection_Jst[i].y)=='string'?eval(collection_Jst[i].y):collection_Jst[i].y);

if (document.documentElement && document.documentElement.scrollTop) 
 {
		if(followObj.offsetLeft!=(document.documentElement.scrollLeft+followObj_x)) 
			{
			var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*delta_Jst;
			dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
			followObj.style.left=followObj.offsetLeft+dx;
			}


		if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) 
		{
		var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*delta_Jst;
		dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
		followObj.style.top=followObj.offsetTop+dy;
		}
		else
		{
		return;
		}


 }
else
 {
		 if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x))
		 {
		var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta_Jst;
		dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
		followObj.style.left=followObj.offsetLeft+dx;
		}


		if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) 
		{
		var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta_Jst;
		dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
		followObj.style.top=followObj.offsetTop+dy;
		}
		else
		{
		return;
		}
  } 
 
	followObj.style.display	= '';
	}
}

function closeBanner_Jst()
	{
	closeB_Jst=true;
	return;
	}
	
	if (document.documentElement && document.documentElement.scrollTop) 
	  {
			document.documentElement.onscroll = function onscrollMove()
			  {
				theFloaters_Jst.play_Jst();
			  }
	   }
	  else
	  
	  {
		   document.body.onscroll = function onscrollMove()
		  {
			theFloaters_Jst.play_Jst();
		  }
	  } 
